﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// 报工
    /// </summary>
    [Table("PB_JobBookingQrCode")]
    public class PB_JobBookingQrCode
    {
        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 主表ID（PB_JobBooking）
        /// </summary>
        public String ParentId { get; set; }

        /// <summary>
        /// 任务单编号
        /// </summary>
        public String OrderId { get; set; }

        /// <summary>
        /// 任务单明细编号
        /// </summary>
        public String OrderDetailId { get; set; }

        /// <summary>
        /// 物料id
        /// </summary>
        public string MaterialId { get; set; }

        /// <summary>
        /// 物料Name
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 流水号
        /// </summary>
        public String SerialNumber { get; set; }

        /// <summary>
        /// 二维码
        /// </summary>
        public string QrCode { get; set; }

        /// <summary>
        /// 车间Id
        /// </summary>
        public string WorkshopId { get; set; }

        /// <summary>
        /// 设计清单id
        /// </summary>
        public string DesignId { get; set; }

        /// <summary>
        /// 设计清单明细id
        /// </summary>
        public string DesignDetailId { get; set; }

        /// <summary>
        /// 收货单id(TD_Receiving)
        /// </summary>
        public string RecId { get; set; }

        /// <summary>
        /// 是否新旧：0-旧；1-新
        /// </summary>
        public int? OldOrNew { get; set; }

        /// <summary>
        /// 外采订单Id
        /// </summary>
        public string PurchaseId { get; set; }

        /// <summary>
        /// 包Id
        /// </summary>
        public string PackId { get; set; }

        /// <summary>
        /// 条码状态：0-正常；1-作废
        /// </summary>
        public int? PackStatus { get; set; }

    }
}
